package com.ourteam.product.ui.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-12-14 15:15:08 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class ProductUITableColumnIcon implements java.io.Serializable {

  public ProductUITableColumnIcon() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long columnId;

  /** Attribute columnId Be Seted Falg */
  private boolean columnIdSetted = false;

  /** Attribute columnId is Null Falg */
  private boolean columnIdNull = false;

  /**
   * Get columnId
   *
   * @return long
   */
  public final long getColumnId() {

    return columnId;
  }

  /**
   * Set columnId
   *
   * @param long
   */
  public final void setColumnId(long columnId) {

    this.columnId = columnId;

    this.columnIdSetted = true;

    this.setColumnIdNull(false);
  }

  /**
   * Get columnId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isColumnIdSetted() {
    return this.columnIdSetted;
  }

  /** Set columnId Null */
  public final void setColumnIdNull() {

    this.columnIdNull = true;
  }

  public final void setColumnIdNull(boolean aNullFlag) {

    this.columnIdNull = aNullFlag;
  }

  public final boolean isColumnIdNull() {

    return this.columnIdNull;
  }

  private String dataValue;

  /** Attribute dataValue Be Seted Falg */
  private boolean dataValueSetted = false;

  /** Attribute dataValue is Null Falg */
  private boolean dataValueNull = false;

  /**
   * Get dataValue
   *
   * @return String
   */
  public final String getDataValue() {

    if (isDataValueNull()) {
      return null;
    } else {
      return StringUtils.trim(dataValue);
    }
  }

  /**
   * Set dataValue
   *
   * @param String
   */
  public final void setDataValue(String dataValue) {

    this.dataValue = StringUtils.trim(dataValue);

    this.dataValueSetted = true;

    this.setDataValueNull(this.dataValue == null);
  }

  /**
   * Get dataValue Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDataValueSetted() {
    return this.dataValueSetted;
  }

  /** Set dataValue Null */
  public final void setDataValueNull() {

    this.dataValueNull = true;
  }

  public final void setDataValueNull(boolean aNullFlag) {

    this.dataValueNull = aNullFlag;
  }

  public final boolean isDataValueNull() {

    return this.dataValueNull;
  }

  private String dataIcon;

  /** Attribute dataIcon Be Seted Falg */
  private boolean dataIconSetted = false;

  /** Attribute dataIcon is Null Falg */
  private boolean dataIconNull = false;

  /**
   * Get dataIcon
   *
   * @return String
   */
  public final String getDataIcon() {

    if (isDataIconNull()) {
      return null;
    } else {
      return StringUtils.trim(dataIcon);
    }
  }

  /**
   * Set dataIcon
   *
   * @param String
   */
  public final void setDataIcon(String dataIcon) {

    this.dataIcon = StringUtils.trim(dataIcon);

    this.dataIconSetted = true;

    this.setDataIconNull(this.dataIcon == null);
  }

  /**
   * Get dataIcon Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDataIconSetted() {
    return this.dataIconSetted;
  }

  /** Set dataIcon Null */
  public final void setDataIconNull() {

    this.dataIconNull = true;
  }

  public final void setDataIconNull(boolean aNullFlag) {

    this.dataIconNull = aNullFlag;
  }

  public final boolean isDataIconNull() {

    return this.dataIconNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof ProductUITableColumnIcon) == false) {
      return false;
    }
    ProductUITableColumnIcon other = (ProductUITableColumnIcon) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("columnId=");
    buffer.append(this.columnId);

    buffer.append("dataValue=");
    buffer.append(this.dataValue);

    buffer.append("dataIcon=");
    buffer.append(this.dataIcon);

    buffer.append("]");

    return buffer.toString();
  }
}
